package com.efast.dmom.mgmt.controller.les;

import java.util.List;
import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.les.TtWhmStockOutbound;
import com.efast.dmom.mgmt.service.les.TtWhmStockOutboundService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @描述 出库记录表 tt_whm_stock_outbound
 * @创建人 ChenLiPeng
 * @创建时间 2018年4月18日下午1:46:28
 */
@Controller
@RequestMapping(value = "/ttWhmStockOutbound")
@Api(description = "物流执行管理-->出库-->出库报表")
public class TtWhmStockOutboundController {

	@Autowired
	private TtWhmStockOutboundService ttWhmStockOutboundService;

	/**
	 * @描述 查询所有的入库记录
	 * @方法名 confirmPicking
	 * @param ttWhmStockOutbound
	 * @return
	 * @返回类型 ResultBean
	 * @创建人 ChenLiPeng
	 * @创建时间 2018年4月18日下午1:52:22
	 */
	@ApiOperation(value = "【查询所有的出库记录】", notes = "请求参数：")
	@RequestMapping(value = "/confirmPicking", method = RequestMethod.POST)
	public @ResponseBody ResultBean confirmPicking(@RequestBody TtWhmStockOutbound ttWhmStockOutbound) {
		ResultBean result = new ResultBean(true, "'");
		List<TtWhmStockOutbound> listTtWhmStockOutbound = ttWhmStockOutboundService.selectTtWhmStockOutbound(null);
		result.setObject(listTtWhmStockOutbound);
		return result;
	}

}
